package org.baicaix.game.warworms.Battle {
	import com.worms.map.BattleMap;

	import org.baicaix.game.warworms.worm.Worm;

	import flash.display.Sprite;

	/**
	 * @author baicaix
	 */
	public class Battle extends Sprite {
		
		private var _backgroundLayer 	: Sprite;
		private var _mapLayer 			: Sprite;
		private var _actionLayer 		: Sprite;
		private var _foregroundLayer 	: Sprite;
		
		public function Battle() {
			
			_backgroundLayer 	= addChild(new Sprite()) as Sprite;
			_mapLayer 			= addChild(new Sprite()) as Sprite;
			_actionLayer 		= addChild(new Sprite()) as Sprite;
			_foregroundLayer 	= addChild(new Sprite()) as Sprite;
		}

		public function changeMap(map : BattleMap) : void {
			_mapLayer.addChild(map);
		}
		
		public function addWorm(worm : Worm) : void {
			_actionLayer.addChild(worm);
		}

	}
}
